<template>
  <div id="app">
    <router-view v-wechat-title="$route.meta.title"/>
    <music class="musicBox"></music>
    <clickaudio ref="clickAudioComponent"></clickaudio>
  </div>
</template>
<script>
import music from "@/components/audioBg/index";
import clickaudio from "@/components/audioBg/clickaudio";

export default {
  name: "App",
  components: {
    music,
   clickaudio
  },
  data() {
    return {};
  },
  mounted() {
  },
  methods: {
    // playClickAudio() {
    //   console.log('playClickAudio')
    //   this.$refs.clickAudioComponent.play()
    // },
    // pauseClickAudio(val) {
    //   console.log('pauseClickAudio: ' + val)
    //   this.$refs.clickAudioComponent.pause()
    // }
  }
};
</script>

<style>

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.musicBox {
  position: absolute;
  right: 20px;
  top: 40px;
  z-index: 99999999999999;
}
</style>
